const arr = [2, 4, 7, 3, 1, 6, 5]

arr.sort((a, b) => b - a)
console.log(arr);

